package com.mayday.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("approval_flow")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ApprovalFlow", description = "审核流程实体")
public class ApprovalFlow {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "审批单模板ID")
    private Long templateId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "类型(1:审批人 2:抄送人)")
    private Integer flowType;

    @ApiModelProperty(value = "领导")
    private String leader;

    @ApiModelProperty(value = "角色ID")
    private String roleId;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
